const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: "/",
  devServer: {
    port: 10010, // 端口
    client: {
      overlay: false,
    },
    proxy: {
      // "/portal-server": {
      //   target: "",
      //   changeOrigin: true,
      //   ws: true,
      //   pathRewrite: {
      //     "^/portal-server": "/portal-server",
      //   },
      // },
    },
  },
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "徐闻智慧文旅一张图";
      return args;
    });
  },
});
